import request from '@/utils/request'

// 查询活动意向列表
export function listIntention(query) {
  return request({
    url: '/village/intention/list',
    method: 'get',
    params: query
  })
}

// 查询活动意向详细
export function getIntention(id) {
  return request({
    url: '/village/intention/' + id,
    method: 'get'
  })
}

// 新增活动意向
export function addIntention(data) {
  return request({
    url: '/village/intention',
    method: 'post',
    data: data
  })
}

// 修改活动意向
export function updateIntention(data) {
  return request({
    url: '/village/intention',
    method: 'put',
    data: data
  })
}

// 删除活动意向
export function delIntention(id) {
  return request({
    url: '/village/intention/' + id,
    method: 'delete'
  })
}
